<template>
  <div>
    <div class='banner_area' v-if="dataSourse.length>0">
      <van-swipe class="img" :autoplay="3000">
        <van-swipe-item v-for="(item,index) in dataSourse" :key="index">
          <span class='swipe_img'>
            <img :src='item.img' />
          </span>
        </van-swipe-item>
      </van-swipe>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    dataSourse: [],
    type: '',
    length: Number,
  },
  data() {
    return {}
  },
  mounted() {},
  methods: {},
}
</script>
<style lang="less" scoped>
.banner_area {
  display: inline-block;
  opacity: 1;
  height: 300px;
  width: 100%;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  box-sizing: border-box;
  .img {
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    .swipe_img {
      display: inline-block;
      width: 100%;
      height: 100%;

      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}

.time_area {
  background: #fff;
  position: fixed;
  left: 0;
  right: 0;
  top: 378px;
  z-index: 999;
  height: 90px;
}

.time_block {
  width: auto;
  height: 55px;
  line-height: 55px;
  opacity: 1;
  background: linear-gradient(180deg, #ff8d1e, #ff540d);
  border-radius: 4px;
  margin: 15px 24px 0 24px;
  box-sizing: border-box;

  .text {
    height: 50px;
    opacity: 1;
    font-size: 30px;
    font-family: PingFang, PingFang-Medium;
    font-weight: 500;
    text-align: justify;
    color: #ffffff;
    padding-left: 24px;
    line-height: 50px;
  }

  .num {
    text-align: center;
    display: inline-block;
    width: 48px;
    height: 36px;
    line-height: 36px;
    opacity: 1;
    background: #ffffff;
    border-radius: 8px;
    margin: 0 10px;
    color: #ff540d;
  }
}
</style>